package com.web44.spring;

import com.web44.spring.service.Calculator;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
 * @Title: AppTest03
 * @Description:
 * @Auther: py
 * @Version: 1.0
 * @create 2024/1/10 11:06
 */
@SpringJUnitConfig(locations="classpath:beans.xml")
//@ExtendWith(SpringExtension.class)
//@ContextConfiguration("classpath:beans.xml")
public class AppTest03 {

    @Autowired
    private Calculator calculator;

    @Test
    public void func01() {
        System.out.println(calculator);
    }
}
